const obj = {};

//计算属性名
let info = {
  [obj]: "aaa",
  [obj]: "bbb",
};

console.log(info);

//entires参数创建map 键值对:map:"aaa"
let map = new Map([[info, "aaa"]]);
console.log(map); //Map(1) { { '[object Object]': 'bbb' } => 'aaa' }

//方法const Koa = require("koa");
const app = new Koa();
const koaouter = require("@koa/router");

//路由
const useRouter = new koaouter({ prefix: "/file" });
app.use(useRouter.routes());
app.use(useRouter.allowedMethods());

//koa 中间件 以及参数调用
app.use((ctx, next) => {
  ctx.body = "Hello World";
});

app.listen(3000, () => {
  console.log(" server ready !");
});
// 方法:get  has  delete clear forEach
